package com.junjie.checkin.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;

/**
 * (TUser)实体类
 *
 * @author makejava
 * @since 2025-06-09 13:21:41
 */
@Data
@TableName("t_user")
public class TUser implements Serializable {
    private static final long serialVersionUID = 169988125833108211L;
    
    
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    
    
    @TableField(value = "username")
    private String username;
    
    
    @TableField(value = "nickname")
    private String nickname;
    
    
    @TableField(value = "password")
    private String password;
    
/**
     * 用户角色,0为普通用户,1为管理员
     */    
    @TableField(value = "role")
    private Byte role;
    
    
    @TableField(value = "create_time")
    private Date createTime;
    
    
    @TableField(value = "create_by")
    private String createBy;
    
    
    @TableField(value = "update_time")
    private Date updateTime;
    
    
    @TableField(value = "update_by")
    private String updateBy;

    @TableField(value = "score")
    private Integer score;


    @TableField(value = "avatar",fill = FieldFill.INSERT)
    private String avatar;

    @TableLogic
    @TableField(value = "disabled")
    private Boolean disabled;
}
